<template>
  <div>
    子组件表单 >>> <input type="text" :value="parent" @input="$emit('getSubValue',$event.target.value)">
    <br>
    子组件表单 >>> <input type="text" v-model="parentValue" @input="$emit('getSubValue',$event.target.value)">
  </div>
</template>

<script>
export default {
  name: "LhzC",
  props: {
    parent: {
      type: String
    }
  },
  computed: {
    parentValue() {
      return this.parent;
    }
  }
}
</script>

<style scoped>

</style>